package com.elsa.smart_buffet.service;

import com.elsa.smart_buffet.pojo.MenuOrder;
import com.elsa.smart_buffet.pojo.Order;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;

import java.util.List;
import java.util.Map;

public interface OrderService {

    ResponseResult insertOrder(List<Map<String, Object>> list) throws InterruptedException;

    ResponseResult insertOrder(MenuOrder menuOrder);

    ResponseResult selectAllOrder();

    ResponseResult selectAllOrderInOrderById();

    ResponseResult selectOrderByDate(String date);

    ResponseResult selectOrderByOId(String oId);

    ResponseResult selectOrderByConsumerName(String name);

    ResponseResult selectOrderByCId(String CId);

    ResponseResult selectOrderByOIdWithMenu(String OId);

}
